package com.zzu.base.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum CourseStatusEnum {
    NOT_STARTED(0, "未开始"),
    IN_PROGRESS(1, "进行中"),
    FINISHED(2, "已结课");

    @EnumValue  // MyBatis-Plus枚举值映射
    @JsonValue  // Jackson序列化时使用此值
    private final   int id;
    private final String description;
    CourseStatusEnum(int id,String description){
        this.id=id;
        this.description=description;
    }
}
